<%-- 
    Document   : nuevoArea
    Created on : 26/10/2009, 05:08:28 PM
    Author     : ADMINISTRADOR
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="r" uri="http://richfaces.ajax4jsf.org/rich" %>
<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>

<script language="javascript" src="../js/funciones.js"></script>
<link href="/colegiatura/Estilos/estilosEsymons.css" rel="stylesheet" type="text/css" />

<f:view>
<h:form>
<table width="100%" border="0">
  <tr>
      <td align="left" class="texto3">
         <h:outputLabel value="Mantenimiento de Areas" styleClass="texto3" /></td>
  </tr>
  <tr><td height="20">
     <a4j:outputPanel ajaxRendered="true">
    <h:messages id="lblMessages" styleClass="messages" infoClass="infoClass" errorClass="errorClass"
                warnClass="warnClass" showDetail="true" errorStyle="color:red;"
                warnStyle="color:green;" infoStyle="color:black;" fatalStyle="color:black"/>
    </a4j:outputPanel>
      </td>
  </tr>
  <tr><td align="left" colspan="5">
   <fieldset>
      <legend>Nueva Área</legend>
      <table width="60%">
     <tr>
    <td width="49">&nbsp;</td>
    <td width="140" align="left"><h:outputLabel value="Nombre :" styleClass="texto20" /> </td>
    <td align="left"><h:inputText value="#{areaController.area.areNombre}" size="60" styleClass="fondo012" /></td>
    <td width="96"></td>
    <td width="51">&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td width="140" align="left"><h:outputLabel value="Descripción :" styleClass="texto20" /> </td>
    <td align="left">
        <h:inputTextarea value="#{areaController.area.areDescripcion}" rows="5" cols="60"  styleClass="fondo012" /></td>
    <td></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
      <td colspan="5" height="15" ></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td width="140" align="left"></td>
    <td align="center">
        <h:commandButton action="#{areaController.grabar}" value="Guardar" styleClass="enlace9" />
		<h:outputLabel value=" " />
		<h:commandButton action="ir_a_listar" value="Cancelar" styleClass="enlace9" />      </td>
    <td align="center"></td>
    <td align="center"></td>
  </tr>  
      </table>  
      </fieldset>    
      </td>
  </tr>
</table>
</h:form>
</f:view>